<%@page contentType="text/html;charset=UTF-8"%>  
<%@page import="java.util.*" %>
<%@page import="my.service.*" %>
<%@page import="my.model.*" %>

<!-------- parameter and basic data padding goes here ---->
<%
	String username = request.getParameter("u");
	if(username == null) 
		username = "rushmore"; 
	
	User user = UserService.findUser(username);
	
	List<User> userList = UserService.topUsers(10);
	
%> 
<!-------------------------- end ------------------------->


<!DOCTYPE html>
<html>
<head>
<title>券商轻量级整合方案</title>
<jsp:include page="common/static.jsp"></jsp:include>
</head>
<body> 
<jsp:include page="common/nav.jsp"></jsp:include>

<div class="container">  

<%if (user != null){ %>
	<p><%= user.getUsername() %></p>
<%} %>


<%for(User u : userList){ %>
	
	<p><%=u.getUsername() %></p>
	
		
<%} %>

</div> 
  
</body>
</html>